import axios from './axios'
import resfulParamsToUrl from './resfulParamsToUrl'

// 参数添加
export const paramInsert = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tsysparam/insert', params), params)
		.catch(() => {})
}

// 参数查询
export const getParamPageList = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tsysparam/pageList', params), params)
		.catch(() => {})
}

// 参数查询
export const getParamModel = params => {
	axios.prototype._loading_ = false
	return axios
		.post(resfulParamsToUrl('/sys/auth/tsysparam/getModel', params), params)
		.catch(() => {})
}

// 参数删除
export const deleteParam = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tsysparam/delete', params), params)
		.catch(() => {})
}

// 机构修改
export const updateParam = params => {
	return axios
		.post(resfulParamsToUrl('/sys/auth/tsysparam/update', params), params)
		.catch(() => {})
}
